package com.cn.test1.service;

import com.cn.test1.data.HrData;
import com.cn.test1.model.HrModel;

import java.util.ArrayList;
import java.util.List;

public class HrService {
    public List<HrModel> getHrModel() {
        List<HrModel> list = new ArrayList<>();
        HrData hrData = new HrData();
        for (int i = 0; i < hrData.hr1.length; i++) {
            HrModel hrModel = new HrModel();
            hrModel.setHr1(hrData.hr1[i]);
            hrModel.setHr2(hrData.hr2[i]);
            hrModel.setHr3(hrData.hr3[i]);
            hrModel.setHr4(hrData.hr4[i]);
            list.add(hrModel);
        }
        return list;
    }
}
